import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../utils'
import Mock from 'mockjs'
const { Random } = Mock
export const noticeMock = pageSize => {
  const result: any[] = []
  for (let i = 0; i < pageSize; i++) {
    result.push({
      id: i + 1,
      title: Mock.mock('@ctitle'),
      type: Random.integer(1, 2),
      content: Mock.mock('@csentence'),
      status: Random.integer(0, 1),
      remark: Mock.mock('@csentence'),
      creator: '1',
      create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
      updater: '',
      update_time: '',
      deleted: false,
      deleted_time: ''
    })
  }
  return result
}
